﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERP.Domain.Entities
{
    /// <summary>
    /// 消息表
    /// </summary>
    public class Message
    {
        /// <summary>
        /// 主键，唯一标识
        /// </summary>
        public long MessageId { get; set; }

        /// <summary>
        /// 消息标题
        /// </summary>
        public string MsgTitle { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        public string MsgContent { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 消息类型
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 状态，1 未读 2 已读
        /// </summary>
        public string Status { get; set; }

        /// <summary>
        /// 租户 id
        /// </summary>
        public long? TenantId { get; set; }

        /// <summary>
        /// 删除标记，0 未删除，1 删除，默认 0
        /// </summary>
        public string DeleteFlag { get; set; }
    }
}
